"""
通用数据模型
"""

from pydantic import BaseModel
from typing import List, Optional, Dict, Any

class ClinicalScene(BaseModel):
    """临床场景模型"""
    id: str
    name: str
    description: str

class ImageProcessingRequest(BaseModel):
    """图像处理请求模型"""
    image_data: str  # base64编码的图像数据
    scene_id: str
    parameters: Optional[Dict[str, Any]] = {}

class ImageProcessingResult(BaseModel):
    """图像处理结果模型"""
    success: bool
    scene_id: Optional[str] = None
    results: Optional[Dict[str, Any]] = {}
    error: Optional[Dict[str, str]] = None
    processing_time: Optional[float] = None
    timestamp: Optional[float] = None